package com.baiyang.app.ui.read.commentList.addComment;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.alibaba.fastjson.JSONObject;

public class AddCommentViewModel extends ViewModel {

    private MutableLiveData<JSONObject> addResult;

    public AddCommentViewModel(){
        addResult = new MutableLiveData<>();
    }

    public void setAddResult(JSONObject result){
        this.addResult.postValue(result);
    }
    public LiveData<JSONObject> getAddResult(){
        return  addResult;
    }
}
